Skip to content

Conversation

@hamzaremmal
Copy link
Member

@hamzaremmal hamzaremmal commented Nov 21, 2025

  • Move the ScalaClassLoader file to the repl
  • Remove deadcode and the dotty.tools.runner package
  • Remove deadcode WorklistAlgorithm
  • Remove reflective calls for JDK9+ classes.

@hamzaremmal hamzaremmal changed the title drop the dotty.tools.runner package in the compiler remove deadcode in the compiler Nov 21, 2025
@hamzaremmal hamzaremmal marked this pull request as ready for review November 21, 2025 22:47

def supportedReleaseVersions: List[String] =
val jdkVersion = JDK9Reflectors.runtimeVersionMajor(JDK9Reflectors.runtimeVersion()).intValue()
val jdkVersion = Runtime.version().feature()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime.Version::major was deprecated in JDK 10 in favor of Runtime.Version::feature.
See https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Runtime.Version.html#major()

@hamzaremmal hamzaremmal merged commit 91351e3 into scala:main Nov 22, 2025
45 checks passed
@hamzaremmal hamzaremmal deleted the remove-deadcode branch November 22, 2025 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants